Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch reasoning_content from litellm response #40

Merged
merged 9 commits into from
Jan 23, 2025

Conversation

maykcaldas
Copy link
Collaborator

No description provided.

@maykcaldas maykcaldas self-assigned this Jan 23, 2025
Base automatically changed from james-changes to refactor-llms January 23, 2025 17:39
@@ -44,7 +44,7 @@ dev = [
"fh-llm-client[local]",
"fhaviary[xml]",
"ipython>=8", # Pin to keep recent
"litellm<1.57.2", # Pin for Router.acompletion typing break from https://github.com/BerriAI/litellm/pull/7594
"litellm>1.59.3", # Pin for deepseek support
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just remove this litellm entry from dev, #32 added it

@@ -29,7 +29,7 @@ dependencies = [
"pydantic~=2.0,>=2.10.1,<2.10.2",
"tiktoken>=0.4.0",
"typing-extensions; python_version <= '3.11'", # for typing.override
'litellm; python_version < "3.13"', # NOTE: paper-qa==5.3 doesn't support 3.13 yet
'litellm>1.59.3; python_version < "3.13"', # NOTE: paper-qa==5.3 doesn't support 3.13 yet
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we just get rid of this python_version thing and have one litellm>1.59.3

@@ -79,6 +79,9 @@ class LLMResult(BaseModel):
logprob: float | None = Field(
default=None, description="Sum of logprobs in the completion."
)
reasoning_content: str | None = Field(
default=None, description="DeepSeek-R1 reasoning content from the LLM."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reasoning content may come from other models besides DeepSeek-R1. Maybe adjust to say "Reasoning content from LLMs such as DeepSeek-R1"

@maykcaldas maykcaldas changed the title Catch deepseek reasoning_content Catch reasoning_content from litellm response Jan 23, 2025
@maykcaldas maykcaldas merged commit fa442ee into refactor-llms Jan 23, 2025
3 of 7 checks passed
@maykcaldas maykcaldas deleted the add-deepseek branch January 23, 2025 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants